﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BasicFramework.Devices;

namespace BasicFramework.Services
{
    public class ServiceProvider
    {


        #region Fields

        private static ServiceManager manager;

        #endregion


        #region Properties

        #endregion


        #region Constructors

        public ServiceProvider(ServiceManager serviceManager)
        {
            manager = serviceManager;
        }

        #endregion


        #region Events

        #endregion


        #region Methods

        public static T GetService<T>() where T : class, IGameService
        {
            return manager.Find<T>();
        }

        #endregion

    }
}
